package org.yefei.homeworkday06;

import java.util.Scanner;

public class HomeWorkFive {

	public static void main(String[] args) {
		// 5:求一个正整数 倒转后加上1024的结果.比如 12345倒转后是54321,加上1024，结果是55345.
		Scanner sc = new Scanner(System.in);
		System.out.println("输入一个正整数：");
		int num = sc.nextInt();
		int i = 0;
		int sum = 0;
		int result;
		int newNumber = num;
		while (true) {
			i = num % 10;
			sum = sum * 10 + i;
			num /= 10;
			if (num == 0) {
				break;
			}
		}
		result = sum + 1024;
		System.out.println(result);

	}

}
